<%--
  Created by IntelliJ IDEA.
  User: lushengjie
  Date: 2021/9/24
  Time: 20:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html>
<html lang="en">
<head>

    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>简历预览</title>
    <link rel="icon" href="/hire/imgs/favicon.ico" type="image/x-icon"/>
    <link rel="stylesheet" href="/hire/css/resume/resume_preview.css">
</head>
<body>

<div class="head">
    <div class="download_resume">
        <button>下载简历</button>
    </div>
    <div class="download_appendix">
        <button>下载附件</button>
    </div>

</div>
<div class="preview-box">
    <div class="preview_head">

    </div>
    <%--   个人信息 --%>
    <div class="personal-info">
        <div class="resume_avatar">
            <img src="http://localhost/hire-front-end/imgs/${resume.resume.resumeAvatar}" alt="图片加载失败">
        </div>
        <div class="basic_info">
            <c:if test="${!empty resume.resume.name}">
                <span class="name">${resume.resume.name}</span><br>
            </c:if>
            <%--            性别不允许为空--%>
            <span>${resume.resume.sex}</span>

            <c:if test="${!empty resume.resume.resIdentity}">
                <span>&nbsp|&nbsp</span>
                <span>${resume.resume.resIdentity}</span>
            </c:if>
            <c:if test="${!empty resume.resume.birthday}">
                <span>&nbsp|&nbsp</span>
                <span>生日：<fmt:formatDate value="${resume.resume.birthday}" pattern="yyyy/MM/dd"/> </span>
            </c:if>
            <c:if test="${!empty resume.resume.area}">
                <span>&nbsp|&nbsp</span>
                <span>${resume.resume.area}</span>
            </c:if>


            <c:if test="${!empty resume.resume.resState}">
                <span>&nbsp|&nbsp</span>
                <span>${resume.resume.resState}</span><br>
            </c:if>

            <c:if test="${!empty resume.resume.phone}">
                <span>${resume.resume.phone}</span>
            </c:if>

            <c:if test="${!empty resume.resume.email}">
                <span>&nbsp|&nbsp</span>
                <span>${resume.resume.email}</span>
            </c:if>

        </div>
    </div>
    <div class="job_pre">
        <div class="title">
            <p class="title_left">求职偏好</p>
            <p class="title_right"></p>
        </div>
        <div class="job_info">
            <c:if test="${!empty resume.resume.expectIndustry}">
                <span>${resume.resume.expectIndustry}</span>
            </c:if>


            <c:if test="${!empty resume.resume.expectJob}">
                <span>&nbsp|&nbsp</span>
                <span>${resume.resume.expectJob}</span>
            </c:if>


            <c:if test="${!empty resume.resume.expectCity}">
                <span>&nbsp|&nbsp</span>
                <span>${resume.resume.expectCity}</span>
            </c:if>

            <c:if test="${!empty resume.resume.salaryRequirement}">
                <span>&nbsp|&nbsp</span>
                <span>${resume.resume.salaryRequirement}</span>
            </c:if>
        </div>
    </div>
    <div class="edu_experience">
        <c:if test="${!empty resume.educationList}">
        <div class="title">
            <p class="title_left">教育经历</p>
            <p class="title_right"></p>
        </div>
        </c:if>
        <c:forEach items="${resume.educationList}" var="education">

            <div class="edu_info">
                <c:if test="${!empty education.schoolName}">
                    <span><b>${education.schoolName}</b></span>
                </c:if>

                <span>&nbsp|&nbsp</span>
                <span class="edu_time"><fmt:formatDate value="${education.startDate}"
                                                       pattern="yyyy/MM/dd"/>-<fmt:formatDate
                        value="${education.endDate}" pattern="yyyy/MM/dd"/></span></br>
                <c:if test="${!empty education.major}">
                    <span><b>${education.major}</b></span>
                </c:if>

                <span>&nbsp|&nbsp</span>
                <c:if test="${!empty education.degree}">
                    <span><b>${education.degree}</b></span></br>
                </c:if>
                    <%--            选填--%>
                <span>${education.experienceSchool}</span>
            </div>

        </c:forEach>
    </div>
    <div class="intern_experience">
        <c:if test="${!empty resume.internList}">
            <div class="title">
                <p class="title_left">实习经历</p>
                <p class="title_right"></p>
            </div>
        </c:if>
        <c:forEach items="${resume.internList}" var="intern">
<%--            <c:if test="${!empty intern}">--%>
                <div class="intern_info">
                    <c:if test="${!empty intern.companyName}">
                        <span><b>${intern.companyName}</b></span>
                    </c:if>

                    <span>&nbsp|&nbsp</span>
                    <span class="intern_time"><fmt:formatDate value="${intern.startDate}"
                                                              pattern="yyyy/MM/dd"/>-<fmt:formatDate
                            value="${intern.endDate}" pattern="yyyy/MM/dd"/></span></br>
                    <c:if test="${!empty intern.companyName}">
                        <span><b>${intern.companyIndustry}</b></span>
                    </c:if>

                    <span>&nbsp|&nbsp</span>
                    <c:if test="${!empty intern.title}">
                        <span><b>${intern.title}</b></span></br>
                    </c:if>

                    <c:if test="${!empty intern.companyName}">
                        <span><b>内容：</b>${intern.content}</span>
                    </c:if>
                </div>
<%--            </c:if>--%>
        </c:forEach>

    </div>
    <div class="project_experience">

        <c:forEach items="${resume.projectList}" var="project">
            <c:if test="${!empty project}">
                <div class="title">
                    <p class="title_left">项目经历</p>
                    <p class="title_right"></p>
                </div>
                <div class="project_info">
                    <c:if test="${!empty project.name}">
                        <span><b>${project.name}</b></span>
                    </c:if>
                    <span>&nbsp|&nbsp</span>
                    <span class="pro_time"><fmt:formatDate value="${project.startTime}"
                                                           pattern="yyyy/MM/dd"/>-<fmt:formatDate
                            value="${project.endTime}" pattern="yyyy/MM/dd"/></span>
                    <c:if test="${!empty project.description}">
                        </br><span><b>内容：</b>${project.description}</span>
                    </c:if>

                    <c:if test="${!empty project.link}">
                        </br><span><b>项目链接:</b>${project.link}</span>
                    </c:if>

                </div>
            </c:if>
        </c:forEach>
    </div>

    <div class="award_experience">

        <c:forEach items="${resume.awardList}" var="award">
            <c:if test="${!empty award}">
                <div class="title">
                    <p class="title_left">获奖经历</p>
                    <p class="title_right"></p>
                </div>
                <div class="award_info">
                    <c:if test="${!empty award.name}">
                        <span><b>${award.name}</b></span>
                    </c:if>
                    <span>&nbsp|&nbsp</span>
                    <span class="award_time"><fmt:formatDate value="${award.awardTime}"
                                                             pattern="yyyy/MM/dd"/></span></br>
                </div>
            </c:if>
        </c:forEach>
    </div>
    <div class="personal_summary">
        <c:if test="${!empty resume.resume.summary}">
            <div class="title">
                <p class="title_left">个人总结</p>
                <p class="title_right"></p>
            </div>
            <div class="summary_info">
                <span>${resume.resume.summary}</span>
            </div>
        </c:if>
    </div>
</div>
</body>
</html>
